﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Domain.Models
{
    [DisplayName("异常日志")]
    public class ExceptionLog
    {
        [DisplayName("编号")]
        public int Id { get; set; }

        [DisplayName("异常类型")]
        [DefaultValue(ExceptionType.BackEnd)]
        public ExceptionType ExceptionType { get; set; }

        [DisplayName("机器名")]
        [StringLength(200)]
        public string MachineName { get; set; }

        [DisplayName("日志名")]
        [StringLength(200)]
        public string Logger { get; set; }

        [DisplayName("日志信息")]
        [StringLength(5000)]
        public string Message { get; set; }

        [DisplayName("日志详细信息")]
        public string Callsite { get; set; }

        [DisplayName("异常信息")]
        public string Exception { get; set; }

        [DisplayName("日志时间")]
        public DateTime? LogTime { get; set; }

    }
}
